-- Create database
USE master
GO
IF DB_ID('perfume_db') IS NOT NULL
	DROP DATABASE perfume_db;

IF DB_ID('perfume_db') IS NULL
BEGIN
	CREATE DATABASE perfume_db;
	SELECT * FROM sys.databases WHERE DATABASEPROPERTYEX(name, 'IsAutoClose') = 1
END